<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="/common.jsp"%>
<!DOCTYPE html>
<html lang="zh">
<meta charset="utf-8">
<head></head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-taxpayer-add">
			<div class="form-group">
				<label class="col-sm-3 control-label">纳税人识别号</label>
				<div class="col-sm-8">
					<input id="taxpayerNumber" name="taxpayerNumber" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">纳税人名称</label>
				<div class="col-sm-8">
					<input id="taxpayerName" name="taxpayerName" class="form-control" type="text">
				</div>
			</div>


			<div class="form-group">
				<label class="col-sm-3 control-label">公司名称</label>
				<div class="col-sm-8">
					<input id="taxpayerCompanyName" name="taxpayerCompanyName" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">公司地址</label>
				<div class="col-sm-8">
					<input id="taxpayerAddress" name="taxpayerAddress" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">联系电话</label>
				<div class="col-sm-8">
					<input id="taxpayerTel" name="taxpayerTel" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">证件类型：</label>
				<div class="col-sm-8">
					<select id="taxOwnerIdCardType" name="taxOwnerIdCardType" class="form-control">
						<option value="1">身份证</option>
						<option value="2">港澳台通行证</option>
						<option value="3">结婚证</option>
						<option value="4">驾驶证</option>
						<option value="5">其他</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">证件号码：</label>
				<div class="col-sm-8">
					<input id="taxOwnerIdCardNum" name="taxOwnerIdCardNum" class="form-control" type="text">
				</div>
			</div>



		</form>
	</div>
	<script type="text/javascript">
		var prefix = "${ctx}/system/taxpayer"
		$("#form-taxpayer-add").validate({
			rules : {
				taxpayerNumber : {
					required : true,
				},
				taxOwnerIdCardNum : {
					required : true,
					minlength : 2,
					maxlength : 20,
				},
				taxOwnerIdCardType : {
					required : true,
				},
				taxpayerTel : {
					required : true,
					isMobile : true
				},
				taxpayerAddress : {
					required : true,
					minlength : 2,
					maxlength : 20,
				},
				taxpayerCompanyName : {
					required : true,
					minlength : 2,
					maxlength : 20,
				},
				taxpayerName : {
					required : true,
					minlength : 2,
					maxlength : 20,
				},
				taxpayerNumber : {
					required : true,
					minlength : 2,
					maxlength : 20,
				},
			}
		});
	
		function submitHandler() {
			if ($.validate.form()) {
				if (!confirm("你确定该操作？")) {
					return;
				}
				$.operate.save(prefix + "/add", $('#form-taxpayer-add').serialize());
			}
		}
	</script>
</body>
</html>
